<?php
/**
 * Created by PhpStorm.
 * User: Pico_Dragon
 * Date: 16/12/2014
 * Time: 13:44
 */

include "../function/helper.php";
include "../../db/dbConnect.php";
if($_SERVER['REQUEST_METHOD'] == 'GET' && $_GET['question']) {

    $idq=escape($_GET['question']);
    $content=escape($_GET['contentQuest']);
    $sql="update u_profile_question
            set question='".$content."'
            where idpr_question = ".$idq."
            and deleted=0
            ";
    if(mysql_query($sql)){
        //echo "Cập nhật thành công!";
        echo 1;
    }else{
        echo mysql_error();
        exit();
    }
}